package cn.edu.scau.cmi.yangzhichao.adapter;

/**
 * Created by lfhr on 2019/4/5.
 */
public class AdapterOfObject implements Voltage5{
    private Voltage220 mVoltage220;

    public AdapterOfObject(Voltage220 voltage220) {
        mVoltage220 = voltage220;
    }

    @Override
    public int output5() {
        int dstV = 0;
        if (mVoltage220!=null) {
            int srcV = mVoltage220.output220V();
            dstV = srcV / 44;
        }
        return dstV;

    }
}
